package com.burst.reptile.modular.zp.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 帮助找铺
 * </p>
 *
 * @author wujin
 * @since 2020-07-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("zp_help_shop")
public class ZpHelpShop implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "hid", type = IdType.AUTO)
    private Integer hid;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    @Size(min = 0, max = 11, message = "手机号不能超过11位字符")
    private String phone;

    /**
     * 区域
     */
    private String region;

    /**
     * 回访备注
     */
    private String remarks;
    
    /**
     * 帮助类型 0 找铺 1 转铺 2 买铺
     */
    @NotBlank(message = "非法请求")
    @Size(min = 0, max = 1, message = "非法请求")
    private String intentionType;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 回访时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    /**
     * 回访用户
     */
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;
    
    /**
     * 短信验证码
     */
    @TableField(exist = false)
    private String code;
    
    /**
     * 请求唯一标识
     */
    @TableField(exist = false)
    private String uuid;

}
